﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Pawn
{
    public partial class FrmThongTinKhach : Form
    {
        public Int32 Id { get; set; }
        public String HoTen
        {
            get
            {
                return tbTenKH.Text;
            }
            set
            {
                tbTenKH.Text = value;
            }
        }
        public String DiaChi
        {
            get
            {
                return tbDiaChi.Text;
            }
            set
            {
                tbDiaChi.Text = value;
            }
        }
        public String DienThoai
        {
            get
            {
                return tbDienThoai.Text;
            }
            set
            {
                tbDienThoai.Text = value;
            }
        }
        public String CMND
        {
            get
            {
                return tbCMND.Text;
            }
            set
            {
                tbCMND.Text = value;
            }
        }
        public int GioiTinh
        {
            get
            {
                return cbGioiTinh.SelectedIndex==0?0:(cbGioiTinh.SelectedIndex==1?1:2);
            }
            set
            {
                cbGioiTinh.SelectedIndex = value;
            }
        }
        public FrmThongTinKhach()
        {
            InitializeComponent();
        }

        private void btnXacNhan_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btnHuy_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FrmThongTinKhach_Load(object sender, EventArgs e)
        {

        }
    }
}
